﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cocukekle.aspx.cs" Async="true" Inherits="baroIstatistik.cocukekle" EnableViewStateMac="false" EnableViewState="false" ViewStateMode="Disabled" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
        <meta charset="utf-8" />
    <title>Yeni Kayıt</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />


    <link href="css/bootstrap.css" rel="stylesheet" />
    <link href="css/bootstrap-responsive.css" rel="stylesheet" />

    <style type="text/css">
        html,
        body {
            height: 100%;
            /* The html and body elements cannot have any padding or margin. */
        }
        /* Set the fixed height of the footer here */
        #footer {
            height: 40px;
            padding-top: 15px;
        }

        #footer {
            background-color: #f5f5f5;
        }

        /* Lastly, apply responsive CSS fixes as necessary */
        @media (max-width: 767px) {
            #footer {
                margin-left: -20px;
                margin-right: -20px;
                padding-left: 20px;
                padding-right: 20px;
            }
        }

        .legendClass {
            background-color: #3C3C3C;
            color: #fff;
            padding-left: 20px;
        }

        #legend {
            margin-right: 20px;
        }
    </style>

</head>
<body>

    <form id="form1" runat="server" >
        <!-- Çocuk Adı -->
        <div class="control-group" id="frm_field_100_container">
            <label class="control-label" for="Cocukadi">Çocuğun Adı Soyadı</label>
            <div class="controls">
                <asp:TextBox ID="cocukadi" runat="server" Style="height: 28px;" placeholder="" class="input-xlarge" Enabled="true" Visible="True"></asp:TextBox>
            </div>
        </div>

        <!-- Çocuk Yaşı -->

        <div class="control-group" id="frm_field_102_container">
            <label class="control-label" for="Cocukyasi">Çocuğun Yaşı </label>
            <div class="controls">
                <asp:TextBox ID="Cocukyasi" runat="server" Style="height: 28px;" placeholder="" class="input-xlarge" Enabled="true" onkeyup="rakkamkontrol('Cocukyasi')"></asp:TextBox>
            </div>
        </div>
        <!-- öğrenim Durumu -->
        <div class="control-group" id="frm_field_103_container">
            <label class="control-label" for="OgrenimDurumu">Öğrenim Durumu</label>
            <div class="controls">
                <asp:DropDownList ID="OgrenimDurumu" runat="server" class="input-xlarge" Enabled="true">
                    <asp:ListItem Text="seçiniz" Value="" Selected="True" />
                    <asp:ListItem Text="İlkokul (İlköğretim birinci kademe)" Value="İlkOkul"  />
                    <asp:ListItem Text="Ortaokul (İlköğretim ikinci kademe)" Value="OrtaOkul" />
                    <asp:ListItem Text="Lise (Orta Öğretim)" Value="Lise" />
                    <asp:ListItem Text="Üniversite (Yüksek Öğretim)" Value="Üniversite" />
                </asp:DropDownList><br />
                <br />
                <br />


                <asp:Button ID="Button1" runat="server" Text="Ekle" class="btn btn-large  btn-info" OnClick="Button1_Click"  />
             <br /><br /><table class="table">
                 <tr><th></th>
                     <th>İSİM & SOYİSİM</th>            
                     <th>YAŞI</th>
                     <th>ÖĞRENİM DURUMU</th>
                 </tr>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                     <tr>
                         <td><a href='cocuksil.aspx?cid=<%#Eval("CocukID") %>&basID=<%Response.Write(Request.QueryString["basID"]); %>'>Sil</a></td>
                         <td><%#Eval("Adi")%></td>                     
                         <td><%#Eval("Yasi")%></td>
                         <td><%#Eval("Egitim")%></td>
                     </tr>
                    </ItemTemplate>
                </asp:Repeater>
                 </table>
            </div>
           
           <script>

              /*function rakkamkontrol(id) {
                   var sayi = 0;
                   var deger = document.getElementById(id).value;
                   if (isNaN(deger)) {


                       alert("Lütfen Bir Rakkam Giriniz");
                       document.getElementById(id).value = ' ';


                   }
                   else if (deger == 0 && sayi == 0) {
                       alert("Sayı Sıfır ile Başlayamaz");
                       document.getElementById(id).value = ' ';
                   }
                   sayi++;
               }*/

                    </script>
        </div>
    </form>
</body>
</html>
